package com.ruoyi.tongyan.service.impl;

import java.util.List;

import com.ruoyi.common.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tongyan.mapper.TClosureMapper;
import com.ruoyi.tongyan.domain.TClosure;
import com.ruoyi.tongyan.service.ITClosureService;

/**
 * 结题管理Service业务层处理
 *
 * @author ruoyi
 * @date 2025-04-21
 */
@Service
public class TClosureServiceImpl implements ITClosureService
{
    @Autowired
    private TClosureMapper tClosureMapper;

    /**
     * 查询结题管理
     *
     * @param closureId 结题管理主键
     * @return 结题管理
     */
    @Override
    public TClosure selectTClosureByClosureId(Long closureId)
    {
        return tClosureMapper.selectTClosureByClosureId(closureId);
    }

    /**
     * 查询结题管理列表
     *
     * @param tClosure 结题管理
     * @return 结题管理
     */
    @Override
    public List<TClosure> selectTClosureList(TClosure tClosure)
    {
        return tClosureMapper.selectTClosureList(tClosure);
    }

    /**
     * 新增结题管理
     *
     * @param tClosure 结题管理
     * @return 结果
     */
    @Override
    public int insertTClosure(TClosure tClosure)
    {
        return tClosureMapper.insertTClosure(tClosure);
    }

    /**
     * 修改结题管理
     *
     * @param tClosure 结题管理
     * @return 结果
     */
    @Override
    public int updateTClosure(TClosure tClosure)
    {
        return tClosureMapper.updateTClosure(tClosure);
    }

    /**
     * 批量删除结题管理
     *
     * @param closureIds 需要删除的结题管理主键
     * @return 结果
     */
    @Override
    public int deleteTClosureByClosureIds(Long[] closureIds)
    {
        return tClosureMapper.deleteTClosureByClosureIds(closureIds);
    }

    /**
     * 删除结题管理信息
     *
     * @param closureId 结题管理主键
     * @return 结果
     */
    @Override
    public int deleteTClosureByClosureId(Long closureId)
    {
        return tClosureMapper.deleteTClosureByClosureId(closureId);
    }
}
